﻿
using OnlineAuction.Common;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;

namespace OnlineAuction.DataAccess
{
    public class LoginDA
    {
        public DataSet CheckLogin()
        {
            SqlConnection conn = null;
            Database db = new Database();
            try
            {
                using (conn = db.GetConnection())
                {
                    SqlDataAdapter da = new SqlDataAdapter("",conn);
                    DataSet ds = new DataSet();
                    da.Fill(ds);
                    return ds;
                }
            }
            catch
            {
                conn.Close();
                return null;
            }
            finally { }
        }
    }
}
